package lesson.c6.proxy;

public class Person implements PlayGame {
	
	private String name;
	
	private int age;
	
	public Person(String name, int age){
		this.name = name;
		this.age = age;
	}
	
	public Person(String name){
		this(name, 1);
	}
	
	public void setAge(int age){
		this.age = age;
	}
	
	public String getName(){
		return this.name;
	}
	
	public int getAge(){
		return this.age;
	}
	
	@Override
	public void play() {
		System.out.println("play game");
	}

}
